package cn.dliyy.warehouse.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.stereotype.Component;

import cn.dliyy.base.bean.IdEntity;

@Entity
@Component
@Table
public class BGoods extends IdEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -2988700858733815073L;
	/** name property */
	@Column
	@Length(min = 1, max = 45)
	private String name;
	/** specification 规格 property */
	@Column
	@Length(max = 45)
	private String specification;

	/** categoryId property */
	@Column
	@NotEmpty
	@Length(max = 11)
	private String categoryId;

	/** unitId property */
	@Column
	@Length(max = 11)
	private String unitId;

	/** notes property */
	@Column
	@Length(max = 45)
	private String notes;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSpecification() {
		return specification;
	}

	public void setSpecification(String specification) {
		this.specification = specification;
	}

	public String getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}

	public String getUnitId() {
		return unitId;
	}

	public void setUnitId(String unitId) {
		this.unitId = unitId;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

}
